package com.service;

import com.po.Activity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ActivityService {
    List<Activity> findAll();

    int findActivitySize();

    List<Activity> findAllByState(int i);

    Page<Activity> findAllByT(Pageable pageable);

    Activity findById(Long id);

    void saveActivity(Activity a);

    List<Activity> findActivity(Long id);

    int save(Long id, Long user_id);

    Page<Activity> findAllByT1(Pageable pageable);

    int delete(Long id, Long u_id);

    Activity getActivity(Long id);

    List<Activity> findAllByTypeId(Long id);

    List<Activity> listRecommendActivityTop(Integer size);

    Page<Activity> findAllByEnd(Pageable pageable);
}
